package random;

import java.util.Random;

/**
 *  int nextInt(int n)
 *
 */
public class RandomDemo01 {
    public static void main(String[] args) {
        Random random = new Random();
        int i = random.nextInt(10);//产生[0,10)之间的随机数
        System.out.println(i);
    }
}
